package com.ruoyi.memberSer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务号用户对象 jy_member_ser
 *
 * @author ch
 * @date 2021-12-27
 */
@ApiModel
public class MemberSer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** openId */
    @Excel(name = "openId")
    @ApiModelProperty(value = "openId")
    private String openId;

    /** unionid */
    @Excel(name = "unionid")
    @ApiModelProperty(value = "unionid")
    private String unionId;

    /** 关注状态0未关注 */
    @Excel(name = "关注状态0未关注")
    @ApiModelProperty(value = "关注状态0未关注")
    private Long subscribe;

    /** 最后关注时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后关注时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "最后关注时间")
    private Date subscribeTime;

    /** 渠道来源 */
    @Excel(name = "渠道来源")
    @ApiModelProperty(value = "渠道来源")
    private String subscribeScene;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setUnionId(String unionId)
    {
        this.unionId = unionId;
    }

    public String getUnionId()
    {
        return unionId;
    }
    public void setSubscribe(Long subscribe)
    {
        this.subscribe = subscribe;
    }

    public Long getSubscribe()
    {
        return subscribe;
    }
    public void setSubscribeTime(Date subscribeTime)
    {
        this.subscribeTime = subscribeTime;
    }

    public Date getSubscribeTime()
    {
        return subscribeTime;
    }
    public void setSubscribeScene(String subscribeScene)
    {
        this.subscribeScene = subscribeScene;
    }

    public String getSubscribeScene()
    {
        return subscribeScene;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openId", getOpenId())
            .append("unionId", getUnionId())
            .append("subscribe", getSubscribe())
            .append("subscribeTime", getSubscribeTime())
            .append("subscribeScene", getSubscribeScene())
            .toString();
    }
}
